<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>退款审核</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../css/index.css">
</head>

<body>
  <div id="app" class="minWidth">
    <el-form :inline="true" :form="form">
      <el-form-item>
        <el-button type="danger">批量删除</el-button>
      </el-form-item>
      <el-form-item>
        <el-input v-model="form.serachKey" placeholder="请输入内容" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSerach">查询</el-button>
      </el-form-item>
    </el-form>

    <el-table :data="tableData.slice((form.page-1)*form.limit,form.page*form.limit)" stripe border
      height="calc(100vh - 140px)" @selection-change="handleSelectionChange" style="width: 100%">
      <el-table-column type="selection" width="40"></el-table-column>
      <el-table-column label="序号" width="50" type="index"></el-table-column>
      <el-table-column prop="Sales_Order_SerialNumber" label="销售订单号"></el-table-column>
      <el-table-column prop="Store_Name" label="门店号"></el-table-column>
      <el-table-column prop="Sales_Date" label="销售日期"></el-table-column>
      <el-table-column prop="Sales_Contacts" label="消费顾客"></el-table-column>
      <el-table-column prop="Sales_Address" label="顾客地址"></el-table-column>
      <el-table-column prop="Sales_Amount" label="消费总额"></el-table-column>
      <el-table-column prop="Collection_Amount" label="实收金额"></el-table-column>
      <el-table-column prop="Row_Status" label="状态" width="90">
        <template v-slot="{ row }">
          <el-tag v-if="row.Refund_Type==1" size="small">申请退款</el-tag>
        </template>
      </el-table-column>
      <el-table-column prop="Row_Status" label="付款情况" width="90">
        <template v-slot="{ row }">
          <div v-if="row.Row_Status">
            <el-tag v-if="row.Row_Status==1" size="small">已付款</el-tag>
            <el-tag v-else-if="row.Row_Status==0" size="small">未付款</el-tag>
            <el-tag v-else-if="row.Row_Status==4" size="small">已退款</el-tag>
            <el-tag v-else-if="row.Row_Status==6" size="small">发货中</el-tag>
            <el-tag v-else-if="row.Row_Status==7" size="small">已送达</el-tag>
            <el-tag v-else type="danger" size="small">已超时</el-tag>
          </div>
        </template>
      </el-table-column>
      <el-table-column prop="Sales_ID" label="销售人员ID"></el-table-column>
      <el-table-column label="操作" width="250">
        <template v-slot="{row}">
          <div v-if="row">
            <el-button type="primary" size="small" @click="isRefund(row.Sales_Order_SerialNumber)">通过</el-button>
            <el-button type="danger" size="small" @click="isNorefund(row.Sales_Order_SerialNumber)">拒绝</el-button>
            <el-button type="success" size="small" @click="showMember(row.Sales_Order_SerialNumber)">查看</el-button>
          </div>
        </template>
      </el-table-column>
    </el-table>

    <el-pagination background v-show="total > 0" @size-change="handleSizeChange" @current-change="handleCurrentChange"
      :current-page="form.page" :page-sizes="[10,50,100,500,1000]" :page-size="form.limit"
      layout="total, sizes, prev, pager, next, jumper" :total="total">
    </el-pagination>
  </div>
  <script type="text/javascript" src="../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../js/utils.js"></script>
  <script type="text/javascript" src="../../../js/FileSaver.min.js"></script>
  <script type="text/javascript" src="../../../js/FileSaver.js"></script>
  <script type="text/javascript" src="../../../js/xlsx.full.min.js"></script>
  <script type="text/javascript" src="./js/RefundReview.js"></script>
</body>

</html>